<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h3>添加学员</h3>
        姓名:
        <input type="text" placeholder="请输入姓名" v-model="username">
        <br><br>
        性别:
        <input type="radio" name="gender" value="1" v-model="gender">男
        <input type="radio" name="gender" value="2" v-model="gender">女
        <br><br>
        年龄:
        <input type="text" placeholder="请输入年龄" v-model="age">
        <br><br>
        租号:
        <input type="text" placeholder="请输入1~8组号" v-model="group">
        <br><br>
        期望薪资:
        <input type="text" placeholder="请输入期望薪资" v-model="expectation">
        <br><br>
        就业薪资:
        <input type="text" placeholder="请输入实际薪资" v-model="actual">
        <br><br>
        籍贯:
        <select v-model="province">
            <option value="1">四川省</option>
            <option value="2">山东省</option>
            <option value="3">山西省</option>
            <option value="4">陕西省</option>
        </select>
        <select v-model="city">
            <option value="1">成都市</option>
            <option value="2">内江市</option>
            <option value="3">自贡市</option>
            <option value="4">广安市</option>
        </select>
        <select v-model="county">
            <option value="1">上县</option>
            <option value="2">下县</option>
            <option value="3">左县</option>
            <option value="4">右县</option>
        </select>
        <br><br>

        <button>取消</button>
        <button @click="add">确认</button>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el : '#app',
            data : {
                username : '肖正丰',
                gender : 1,
                age : 20,
                group : 5,
                expectation : 20000,
                actual : 300,
                province : 1,
                city : 2,
                county : 3
            },
            methods: {
                add(){
                    alert(`姓名:${this.username},就业薪资${this.actual}元`)
                }
            },
        })
    </script>

</body>

</html>